# import requests
#
# params = {'spm_id_from': '333.1007.tianma.4-2-12.click'}
# cookies = "buvid3=65C95C2A-281C-995F-3061-FB0C51D97A0917019infoc; b_nut=1710740717; i-wanna-go-back=-1; b_ut=7; b_lsid=75C358E6_18E5017BE41; _uuid=41589292-5DBB-B1105-DC103-987E9BF3B47C17136infoc; enable_web_push=DISABLE; FEED_LIVE_VERSION=V8; header_theme_version=undefined; home_feed_column=5; browser_resolution=1920-916; buvid4=43025EF0-5989-61F8-F84C-6E0FF294E4E118042-024031805-xUvqisD%2BLwcX%2FMXgNiUtOg%3D%3D; buvid_fp=6714c373c99107d063c8cfbb16515ee9; CURRENT_FNVAL=4048; sid=68f1oapr; rpdid=|(JYl~lmk|J)0J'u~u|~R|~Ju; bili_ticket=eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTA5OTk5MzIsImlhdCI6MTcxMDc0MDY3MiwicGx0IjotMX0.n9t4kv7SVsnuU--0eJS6du1xTGxkxy5wkh5pOpzsSUI; bili_ticket_expires=1710999872"
# headers = {
#     'cookie': cookies
# }
#
# # cookie = {}
# # for kv in cookies.split('; '):
# #     k, v = kv.split('=')
# #     cookie[k] = v
# req = requests.get('https://www.bilibili.com/video/BV1cD42177Rg/', params=params, headers=headers)
# print(req.text)

url = 'https://i0.hdslb.com/bfs/archive/c8fd97a40bf79f03e7b76cbc87236f612caef7b2.png'
from urllib.request import urlretrieve

urlretrieve(url, 'logo2.png')
